/**
 * Description:
 * Date: 2025-11-12
 * Time: 21:08
 */
public class Test {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.creatTree();
        System.out.println(binaryTree.size(root));

        System.out.println(binaryTree.getLeafNodeCount(root));
        System.out.println(binaryTree.getKLevelNodeCount(root, 3));
        System.out.println(binaryTree.getHeight(root));

        BinaryTree.TreeNode r = binaryTree.find(root,'G');
        System.out.println(r.val);

        System.out.println(10);
    }
}
